package com.genexususa.eo.google.test.ad;

import com.genexususa.eo.google.connection.AdsManager;

/**
 * Created with IntelliJ IDEA.
 * User: Emiliano Martinez
 * Date: 1/28/2015
 * Time: 3:08 PM
 * To change this template use File | Settings | File Templates.
 */
public class ConsumeCreateMobileAd {

    private static String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n" +
            "<GA_MobileAdCollection>\n" +
            "\t<GA_MobileAd>\n" +
            "\t\t<CampaignID>229207837</CampaignID>\n" +
            "\t\t<SubCampaignGxId>2</SubCampaignGxId>\n" +
            "\t\t<AdGroupId>14718174637</AdGroupId>\n" +
            "\t\t<AdGroupGxId>4</AdGroupGxId>\n" +
            "\t\t<AdId>5</AdId>\n" +
            "\t\t<AdGxId>6</AdGxId>\n" +
            "\t\t<AdStatus>E</AdStatus>\n" +
            "\t\t<Headline>Headline Text</Headline>\n" +
            "\t\t<Description>Description Text</Description>\n" +
            "\t\t<PhoneNumber>3127056897</PhoneNumber>\n" +
            "\t\t<CountryCode>US</CountryCode>\n" +
            "\t\t<BusinessName>Compania</BusinessName>\n" +
            "\t\t<DisplayUrl>http://www.urluna.com</DisplayUrl>\n" +
            "\t\t<DestinationUrl>http://www.urluna.com</DestinationUrl>\n" +
            "\t\t<MarkupLanguages>\n" +
            "\t\t\t<MarkupLanguage>HTML</MarkupLanguage>\n" +
            "\t\t\t<MarkupLanguage>WML</MarkupLanguage>\n" +
            "\t\t</MarkupLanguages>\t\n" +
            "\t</GA_MobileAd>\n" +
            "</GA_MobileAdCollection>";

    public static void main(String[] args){

        AdsManager am = new AdsManager();

        am.SetClientId("9009202532");

        String res = am.CreateMobileAd(xml);

        System.out.println(res);



    }
}
